GtkIconTheme: Respect limits in theme dirs
authorMatthias Clasen <mclasen@redhat.com>
Fri, 20 Jun 2014 18:17:47 +0000 (14:17 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 22 Jun 2014 15:52:10 +0000 (11:52 -0400)
commita10412f49eb9b2068b2101c291f873da98c51326
tree795473c0bd324f83ed23d8be0d65b6e9d725ee75
parent58715796d2e917dd4b3896f8a49b6712327710a7
GtkIconTheme: Respect limits in theme dirs

Previously, we were taking thresholds and min/max sizes into
account when choosing the best theme dir, but when it came
to loading the icon, we always scaled icons from scalable
directories all the way, ignoring the min/max size limits.

This commit changes things around so that we now load icons
in Threshold directories at their nominal size, and scale
icons in Scalable directories only up to the specified limits.

To override this and keep the previous behaviour of scaling
all the way to the desired size, use the GTK_ICON_THEME_FORCE_SIZE
flag.
gtk/gtkicontheme.c